﻿using System.Collections.Generic;

public class Wuxue { // 武学

    /// <summary>
    /// 武学id
    /// </summary>
    public string WuxueId { get; set; }
    /// <summary>
    /// 门派id
    /// </summary>
    public string SectId { get; set; }
    /// <summary>
    /// 武学名称
    /// </summary>
    public string Name { get; set; }
    /// <summary>
    /// 武学简介
    /// </summary>
    public string Intro { get; set; }
    /// <summary>
    /// 攻防部位
    /// </summary>
    public Constant.PersonagePart MajorPart { get; set; }
    /// <summary>
    /// 攻防类型
    /// </summary>
    public Constant.ActionCategory ActionCategory { get; set; }
    /// <summary>
    /// 依赖（拳掌、腿法、剑法、刀法、棍棒、轻功、内功） 
    /// </summary>
    public Constant.WuxueCategory Rely { get; set; }
    /// <summary>
    /// 图片地址
    /// </summary>
    public string Sprite { get; set; }

    /// <summary>
    /// 门派
    /// </summary>
    public Sect TheSect { get; set; }
    /// <summary>
    /// 学习条件
    /// </summary>
    public List<RequireCondition> StudyConditions { get; set; }
    /// <summary>
    /// 各个等级情况
    /// </summary>
    public List<WuxueGrade> WuxueGrades { get; set; }

    public Wuxue() {
        this.StudyConditions = new List<RequireCondition>();
        this.WuxueGrades = new List<WuxueGrade>();
    }

    /// <summary>
    /// 根据人物属性判断能否学习该武学
    /// </summary>
    /// <param name="person">人物</param>
    /// <returns>List 不满足的条件（为空时表示满足)</returns>
    public List<Constant.RequireCategory> AbleStudy(Personage personage) {
        return GameHelper.GetDisSatisfactory(personage, StudyConditions);
    }

}



